/**
 * 作者: hxl
 * 日期: 2025-04-24 15:00:23
 * 备注: 用户联盟乱斗成员快照信息表
 */
package com.motu.monstercity.server.game.userdata;

import com.motu.vertx.module.utility.model.EntityManager;

public class UserUnionScuffleMember extends UserUnionScuffleMemberModel {
    public UserUnionScuffleMember() {
        super();
    }
    public UserUnionScuffleMember(long userId, long actId, long enemyUnionId, long memberId, long power) {
        putUserId(userId);
        putActId(actId);
        putEnemyUnionId(enemyUnionId);
        putMemberId(memberId);
        String groupListKey = EntityManager.getFieldJoinString(userId, actId, enemyUnionId);
        putGroupListKey(groupListKey);
        putPower(power);
    }

    public void setUserInfo(UserInfo userInfo) {
        putName(userInfo.getUserName());
        putIcon(userInfo.getIcon());
        putIconFrame(userInfo.getIconFrame());
    }

}
